"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.dasherize = void 0;
function dasherize(str) {
    return str.replace(/[A-Z](?:(?=[^A-Z])|[A-Z]*(?=[A-Z][^A-Z]|$))/g, (s, i) => {
        return (i > 0 ? '-' : '') + s.toLowerCase();
    });
}
exports.dasherize = dasherize;
